/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Kanak
 */


public class PaymentInformation {
    public String getCardNumber() {
        return cardnumber;
    }

    public int getSecurityNumber() {
        return securityCode;
    }

    public String getexpirationDate() {
        return expirationDate;
    }
    public String getfirstname() {
        return firstname;
        }
    public String gettype() {
        return cardtype;
    }
     public String getlastname() {
        return lastname;
        }
     





    private String cardnumber;
    private String expirationDate;
    private int securityCode;
    private String firstname;
    private String cardtype;
    private String lastname;
    private String bankaccount;
    private String routingnumber;
    private String paypalpassword;
    private String paypalaccount;




    public PaymentInformation(String firstname,String lastname,String cardnumber,String cardtype,String expirationdate,String securityCode)

    {
        this.cardnumber = cardnumber;
        this.expirationDate = expirationdate;
        this.securityCode = Integer.parseInt(securityCode);
        this.cardtype = cardtype;
        this.firstname = firstname;
        this.lastname=lastname;
        //this.paypalaccount=paypalaccount;
        //this.paypalpassword=paypalpassword;
        //this.routingnumber=routingnumber;
        //this.bankaccount=bankaccount;

        ConnectToDatabase connect = new ConnectToDatabase();
        connect.addPaymentInfo(this);

    }
    
}
